package com.xsoft.permission;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import androidx.annotation.Keep;

/**
 * created by zhangkai on 2020/6/3
 * email: 405547628@qq.com
 * desc:
 */
@Keep
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Permission {

    /**
     * 权限列表
     *
     * @return
     */
    String[] value();

    /**
     * 如果没有授权是否继续执行
     *
     * @return
     */
    boolean keepGoing() default false;
}
